﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FunctionPage.aspx.cs" Inherits="FunctionPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Dashboard</title>
    <style type="text/css">
        .commonTitle
        {
            color: #91723f;
            font-size: 110%;
            font-weight: bold;
            padding: 5px 0px 3px 5px;
            margin: 0px;
        }
        .tableGrid
        {
            width: 100%;
            background-color: #ccc;
        }
        .gridHeader
        {
            height: 18px;
            font-size: 9pt;
            color: #666;
            font-weight: bold;
            background-color: #F5F5F5;
        }
        .gridItem
        {
            background-color: #fff;
            font-size: 9pt;
            height: 20px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <fieldset>
        <legend>常用操作</legend>
        <ul>
            <li>
                <asp:HyperLink runat="server" ID="RedirectHomePage" Text="换其他用户登录" NavigateUrl="~/Default.aspx" />
            </li>
            <li>
                <asp:LinkButton ID="CreateApprovalTask" runat="server" OnClick="CreateApprovalTask_Click">发起审批任务</asp:LinkButton></li>
        </ul>
    </fieldset>
    <br />
    <h3 class="commonTitle">
        我的待办事项</h3>
    <asp:Repeater runat="server" ID="MyExecutingWorkItemsRepeater">
        <HeaderTemplate>
            <table class="tableGrid" cellspacing="1" cellpadding="3" width="100%" border="0">
                <tr class="gridHeader">
                    <th style="width: 20%">
                        应用程序
                    </th>
                    <th style="width: 20%">
                        任务名称
                    </th>
                    <th style="width: 10%">
                        当前活动
                    </th>
                    <th style="width: 10%">
                        报送人
                    </th>
                    <th style="width: 30%">
                        报送部门
                    </th>
                    <th style="width: auto">
                        创建时间
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr class="gridItem">
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="ApplicationName" />
                </td>
                <td nowrap="nowrap">
                    <asp:HyperLink runat="server" ID="TaskName" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="ExecutingActivityName" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="CreatorDisplayName" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="CreatorOrganization" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="CreateDate" />
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <br />
    <br />
    <h3 class="commonTitle">
        我的已办事项</h3>
    <asp:Repeater runat="server" ID="UserParticipantTasksRepeater">
        <HeaderTemplate>
            <table class="tableGrid" cellspacing="1" cellpadding="3" width="100%" border="0">
                <tr class="gridHeader">
                    <th style="width: 20%">
                        应用程序
                    </th>
                    <th style="width: 20%">
                        任务名称
                    </th>
                    <th style="width: 10%">
                        当前活动
                    </th>
                    <th style="width: 10%">
                        创建人
                    </th>
                    <th style="width: 25%">
                        创建部门
                    </th>
                    <th style="width: 5%">
                        状态
                    </th>
                    <th style="width: auto">
                        报送时间
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr class="gridItem">
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="ApplicationName" />
                </td>
                <td nowrap="nowrap">
                    <asp:HyperLink runat="server" ID="TaskName" Target="_blank" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="ExecutingActivityName" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="CreatorDisplayName" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="CreatorOrganization" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="Status" />
                </td>
                <td nowrap="nowrap">
                    <asp:Literal runat="server" ID="CreateDate" />
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    </form>
</body>
</html>
